package com.ynny.extends_.bean07;

public class PetShopTest {

    public static void main(String[] args) {

        PetShop petShop = new PetShop();

//        petShop.saleAnimal(new Dog());
//        petShop.saleAnimal2(new Cat());
        petShop.saleAnimal(new Cat());
        petShop.saleAnimal2(new Dog());

        petShop.saleAnimal0(new Dog());
        petShop.saleAnimal0(new Cat());


    }
}
